<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
	<script src="https://cdn.bootcdn.net/ajax/libs/qs/6.11.0/qs.min.js"></script>
	<script>
		// 1.创建一个实例对象
		var xhr=new XMLHttpRequest();
		// 2.打开一个连接
		var obj={
			page:1,
			pageSize:10
		}
		console.log(Qs.stringify(obj));
		xhr.open('get','http://121.199.0.35:8888/index/article/pageQuery'+"?"+Qs.stringify(obj));
		// 3.发送请求
		xhr.send();
		// 4.接收响应
		xhr.onreadystatechange=function(){
			if(xhr.readyState===4&&xhr.status===200){
				console.log(xhr.responseText);
			}
		}
	</script>
</head>
<body>
	
</body>
</html>